--更代-弃牌
local gengdai_active = fk.CreateSkill {
    name = "mcdh_gengdai_active",
}

local U = require "packages/utility/utility"
local lib = require "packages/mcdh/lib"

gengdai_active:addEffect('active',{
    card_filter = function(self,player, to_select, selected)
        return #selected < 2 and table.every(selected, function(id)
            return Fk:getCardById(id).type ~= Fk:getCardById(to_select).type
        end)  and not player:prohibitDiscard(to_select)
    end,
    feasible = function(self, player,selected, selected_cards)
        return #selected_cards == 2
    end,
    target_filter = function() return false end,
})

return gengdai_active